//
//  Algorithm.h
//  2048
//  游戏操控时规则类
//  Created by 高新川 on 15/6/7.
//  Copyright (c) 2015年 高新川. All rights reserved.
//

#import <Foundation/Foundation.h>
@class DataModel;

@interface Algorithm : NSObject

@property (nonatomic,assign) int addScore;         // 加分

- (void)caculateTop:(DataModel *)model;            // 上滑规则
- (void)caculateBottom:(DataModel *)model;         // 下滑规则
- (void)caculateLeft:(DataModel *)model;           // 左滑规则
- (void)caculateRight:(DataModel *)model;          // 右滑规则

- (BOOL)randNewOne:(DataModel *)data;

- (int)getAddScore;

@end
